#include<stdio.h>
#include<stdlib.h>
int main() {
    FILE *file;
    file = fopen("./txt", "r");
    if (file == NULL) {
        perror("Error opening file");
        return EXIT_FAILURE;
    }

    char buffer[0x1000];
    size_t bytesRead;
    while((bytesRead = fread(buffer, 1, sizeof(buffer), file)) > 0) {
        fwrite(buffer, 1, bytesRead, stdout);
    }
    fclose(file);
}
